* Try to keep it under around 15 characters.
*/
label: _('Mirror'),
- switchMode: Meta.MonitorSwitchConfigType.ALL_MIRROR,
+ configType: Meta.MonitorSwitchConfigType.ALL_MIRROR,
});
items.push({
* Try to keep it under around 15 characters.
*/
label: _('Join Displays'),
- switchMode: Meta.MonitorSwitchConfigType.ALL_LINEAR,
+ configType: Meta.MonitorSwitchConfigType.ALL_LINEAR,
});
if (global.backend.get_monitor_manager().has_builtin_panel) {
* Try to keep it under around 15 characters.
*/
label: _('External Only'),
- switchMode: Meta.MonitorSwitchConfigType.EXTERNAL,
+ configType: Meta.MonitorSwitchConfigType.EXTERNAL,
});
items.push({
icon: 'computer-symbolic',
* Try to keep it under around 15 characters.
*/
label: _('Built-in Only'),
- switchMode: Meta.MonitorSwitchConfigType.BUILTIN,
+ configType: Meta.MonitorSwitchConfigType.BUILTIN,
});
}
const monitorManager = global.backend.get_monitor_manager();
const item = this._items[this._selectedIndex];
- monitorManager.switch_config(item.switchType);
+ monitorManager.switch_config(item.configType);
}
});